#include "WOH_Texture.h"


WOH_Texture::WOH_Texture(LPDIRECT3DDEVICE9	pDevice)
{
	m_pDevice=pDevice;
	m_pTexture=NULL;
}

WOH_Texture::~WOH_Texture(void)
{
	CloseDown();
}
void WOH_Texture::CloseDown()
{
	if(m_pTexture)
		m_pTexture->Release();
	
}
BOOL WOH_Texture::LoadTextureFromFile(TCHAR *szTextureFileTitle)
{
	::D3DXCreateTextureFromFile(m_pDevice,szTextureFileTitle,&m_pTexture);
	if(m_pTexture)
		return TRUE;
	else
		return FALSE;
}
